Enlarge VirtualBox vdi

  1. Go to virtualbox installation directory and execute the following command:

    D:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyhd "F:\VirtualBox\my ubuntu.vdi" --resize 15360

    Note 15360 is the new size (M), this command can only enlarge the size.

  2. Install gparted by sudo apt-get install gparted and make the extended disk space available to use.

  3. Remount /home to the new disk. For concrete steps, refer to this link.